package com.ten.jinxiancun.mapper;

import java.util.List;
import java.util.Map;

/*
 *
 *   角色表 操作
 *
 * */
public interface rolesMapper {
    public List<Map<String, Object>> getAllRoles(Map<String, Object> map);//查询

    public Integer getRolesCount(Map<String, Object> map);

    public Integer AddRoles(Map<String, Object> map);

    public Integer UpdateRoles(Map<String, Object> map);

    public Integer DelectRoles(Integer id);

    /*
     * 树形图
     * */
    //角色添加模块时获取已有模块
    public List<Map<String, Object>> getRolesMenu(Map<String, Object> map);

    public List<Map<String, Object>> getRoles(Map<String, Object> map);
    Integer rolesCount(Map<String, Object> map);
    public Integer addRolesMenu(Map<String, Object> map);
    public Integer deleteRolesMenu(Integer menuId, Integer roleId);
}
